package com.neoCalf.neoUser.feigns;


import com.neoCalf.neoCommon.entity.UserInfo;
import com.neoCalf.neoCommon.model.R;
import org.jetbrains.annotations.NotNull;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 小牛
 * @version 1.0
 * @description TODO
 * @date 2025/4/13 21:22
 */
@FeignClient(value = "authService", path = "/api")
public interface AuthServiceFeign {

    /**
     * 获取token
     */
    @PostMapping(value = "/auth/token")
    R<String> getToken(@RequestBody @NotNull UserInfo userInfo);
}
